/* 
 * Gneat (http://gneat.org)
 *
 * (C) Copyright 2011 and beyond - Claudio Stella, all rights reserved.
 *
 * This file is part of Gneat.
 *
 * Gneat is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License (LGPL)
 * as published by the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Gneat is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * and the GNU General Public License, for completeness, along with Gneat.  
 * If not, see <http://www.gnu.org/licenses/>.
 */
package org.neatshell.gneat.client.view.live.html;

import org.neatshell.gneat.client.presenter.html.RootBodyPresenter;
import org.neatshell.gneat.client.view.live.core.LiveView;

import com.google.gwt.dom.client.Document;
import com.google.inject.Inject;

public class RootBodyLiveView extends LiveView implements RootBodyPresenter.IView {
	@Inject
	public RootBodyLiveView() {
		setNode(Document.get().getDocumentElement().getElementsByTagName("body").getItem(0));
	}

//	@Override
//	public void append(IView view) {
//		super.append(view);
//		if (!RootPanel.isInDetachList((Widget) view))
//			RootPanel.detachOnWindowClose((Widget) view);
//	}
}